package cn.exrick.xboot.core.common.enums;

import com.baomidou.mybatisplus.annotation.EnumValue;
import com.fasterxml.jackson.annotation.JsonValue;

/**
 * 与本人关系枚举
 */
public enum CheckStatus {

    /**
     * 待审核
     */
    PRE_CHECK(1,"待审核"),

    /**
     * 审核成功
     */
    SUCCESS(2,"审核成功"),

    /**
     * 审核失败
     */
    FAIL(3,"审核失败");

    CheckStatus(int code, String value) {
        this.code = code;
        this.desc = value;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    @JsonValue
    public String getValue() {
        return desc;
    }

    public void setValue(String value) {
        this.desc = value;
    }

    @EnumValue
    private int code;
    private String desc;

}
